//
//  LoginController.m
//  ProjectDemo
//
//  Created by IOS3 on 2018/11/1.
//  Copyright © 2018 IOS3. All rights reserved.
//

#import "LoginController.h"
#import "ValidPhoneController.h"
#import "RegisterController.h"
#import "BookStackController.h"
#import "MineController.h"
#import "TTTTtestController.h"
#import "TestSJPlayerController.h"
#import "TestZFPlayController.h"


@interface LoginController () <UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UITextField *phoneNumberTextField;
@property (weak, nonatomic) IBOutlet UITextField *passwordTextField;


@end

@implementation LoginController

- (void)viewDidLoad {
    [super viewDidLoad];
 
    [self initialize];
}

- (void)initialize {
    self.hbd_barHidden = YES;
    self.phoneNumberTextField.delegate = self;
    self.passwordTextField.delegate = self;
    self.phoneNumberTextField.tag = 22;
    self.passwordTextField.tag = 33;
}


#pragma mark - action

- (IBAction)hidenPasswordButtonClick:(UIButton *)sender {
    self.passwordTextField.secureTextEntry = !self.passwordTextField.isSecureTextEntry;
}
- (IBAction)nowRegisterButtonClick:(UIButton *)sender {
    RegisterController *target = [[UIStoryboard storyboardWithName:@"Register" bundle:nil] instantiateViewControllerWithIdentifier:@"RegisterController"];
    [self.navigationController pushViewController:target animated:YES];
}
- (IBAction)forgetPasswordButtonClick:(UIButton *)sender {
    TestSJPlayerController *playerVC = TestSJPlayerController .new;
    [self.navigationController pushViewController:playerVC animated:YES];
    return;
    
    
    ValidPhoneController *target = [[UIStoryboard storyboardWithName:@"Login" bundle:nil] instantiateViewControllerWithIdentifier:@"ValidPhoneController"];
    [self.navigationController pushViewController:target animated:YES];
}
- (IBAction)loginButtonClick:(UIButton *)sender {
    
    [self.navigationController pushViewController:TestZFPlayController.new animated:YES];
    return;
    
//    [self.navigationController pushViewController:[BookStackController new] animated:YES];
//    MineController *target = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"MineController"];
//    [self.navigationController pushViewController:target animated:YES];
        [self.navigationController pushViewController:[TTTTtestController new] animated:YES];
}


#pragma mark - UITextFieldDelegate
- (void)textFieldDidEndEditing:(UITextField *)textField {
    
}

@end
